package net.tngou.action;

import java.io.IOException;
import java.util.List;
import java.util.UUID;

import javax.servlet.ServletException;

import net.tngou.pojo.Item;
import net.tngou.pojo.POJO;
import net.tngou.pojo.Result;
import net.tngou.util.DigestMD;


public class ResultsAction extends BaseAction {

	@Override
	public void execute() throws ServletException, IOException {
		
		
		 List<Result> results =(List<Result>) session.getAttribute("results_all");
		 if(results==null)
		 {
			 results=(List<Result>) service.getList(Result.class);
			 session.setAttribute("results_all", results);	
		 }
		 root.put("results", results);
		 root.put("title", "第五届最美“十大金牛好人” 资讯列表");    
		 root.put("keywords", "最美“十大金牛好人” ");
		 root.put("description","第五届最美“十大金牛好人” 资讯列表");
		 printFreemarker("default/results.ftl", root);
		 
		 
		 
	}
	
	
}
